package com.james.controller;

import com.james.po.Sysuser;
import com.james.service.img.SysuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysuserController {
    @Autowired
    private SysuserService sysuserService;
    @RequestMapping(value = "userall")
    public List<Sysuser> userall(){
       List<Sysuser> s= sysuserService.sysuserall();
        System.out.println(s);
        return s;
    }
}
